﻿function Education(data) {
    this.Id = ko.observable(data.Id ? data.Id : 0);
    this.Created = ko.observable(data.Created ? data.Created : "");
    this.Updated = ko.observable(data.Updated ? data.Updated : "");
    this.Title = ko.observable(data.Title ? data.Title : "").extend({
        required: true,
        maxLength: 15
    });
    this.Description = ko.observable(data.Description ? data.Description : "").extend({
        required: true,
        maxLength: 100
    });
    this.Key = ko.observable(data.Key ? data.Key : "").extend({
        required: true,
        maxLength: 20
    });
    this.errors = ko.validation.group(this);
    return;
}